package ewms.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ewms.bo.EwmsWasteInventoryQueryBo;
import ewms.domain.EwmsWasteInventory;
import ewms.vo.EwmsWasteInventoryVo;
import ewms.common.core.page.BaseMapperPlus;
import ewms.common.core.mybatisplus.MybatisPlusRedisCache;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 危废库存信息Mapper接口
 *
 * @author zhaoxiaochun
 * @date 2022-02-09
 */
@CacheNamespace(implementation = MybatisPlusRedisCache.class, eviction = MybatisPlusRedisCache.class)
public interface EwmsWasteInventoryMapper extends BaseMapperPlus<EwmsWasteInventory> {

	/**
	 * 查询危废库存列表
	 *
	 * @param page         分页信息
	 * @param wasteInventoryQueryBo
	 * @return
	 */
	Page<EwmsWasteInventoryVo> selectPageWasteInventoryList(@Param("page") Page<EwmsWasteInventoryVo> page, @Param("wasteInventory") EwmsWasteInventoryQueryBo wasteInventoryQueryBo);

	/**
	 * 查询危废库存列表
	 *
	 * @param wasteInventoryQueryBo
	 * @return
	 */
	public List<EwmsWasteInventoryVo> selectWasteInventoryList(EwmsWasteInventoryQueryBo wasteInventoryQueryBo);
}
